import Vue from 'vue'
import Router from 'vue-router'

//登录
import login from '@/views/login'
//主内容
import container from '@/views/main/container'
//首页
import main from '@/views/system/main'

//系统管理
//权限分配
import super_distribution from '@/views/super/permissions/distribution'

//角色管理
import super_group from '@/views/super/permissions/group'


//监考
//成绩统计
import invigilate_analysis from "@/views/invigilate/achievements/analysis"

//成绩查询
import invigilate_query from "@/views/invigilate/achievements/query"

//出卷
import invigilate_rollOut from "@/views/invigilate/examinationPaper/rollOut"

//改卷
import invigilate_volumeChange from "@/views/invigilate/examinationPaper/volumeChange"

//考场管理
import invigilate_examinationRoom from "@/views/invigilate/examinationRoom/examinationRoom"

//考生申请
import invigilate_application from "@/views/invigilate/examinee/application"

//考生信息
import invigilate_info from "@/views/invigilate/examinee/info"


//考生
//成绩查询
import examinee_find from "@/views/examinee/query/find"

//考卷查询
import examinee_paper from "@/views/examinee/query/paper"

//我的考场
import examinee_room from "@/views/examinee/room/room"

//我的考试
import examinee_test from "@/views/examinee/test/test"

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login,
    },
    {
      path: '/container',
      component: container,
      name: 'container',
      children:[
        //首页
        {
          path:"/main",
          name:"main",
          component:main
        },

        //系统管理
        {path:"/super/permissions/distribution",name:"权限分配",component:super_distribution},
        {path:"/super/permissions/group",name:"角色管理",component:super_group},

        //监考
        {path:"/invigilate/achievements/analysis",name:"成绩统计",component:invigilate_analysis},
        {path:"/invigilate/achievements/query",name:"成绩查询",component:invigilate_query},
        {path:"/invigilate/examinationPaper/rollOut",name:"出卷",component:invigilate_rollOut},
        {path:"/invigilate/examinationPaper/volumeChange",name:"改卷",component:invigilate_volumeChange},
        {path:"/invigilate/examinationRoom/examinationRoom",name:"考场管理",component:invigilate_examinationRoom},
        {path:"/invigilate/examinee/application",name:"考生申请",component:invigilate_application},
        {path:"/invigilate/examinee/info",name:"考生信息",component:invigilate_info},

        //考生
        {path:"/examinee/query/find",name:"成绩查询",component:examinee_find},
        {path:"/examinee/query/paper",name:"考卷查询",component:examinee_paper},
        {path:"/examinee/room/room",name:"我的考场",component:examinee_room},
        {path:"/examinee/test/test",name:"我的考试",component:examinee_test},
      ]
    },

  ]
})
